 <?php 
class product_plugin_categories extends abstract_product_plugin {

	public function getCategories($product_id) {
       $query = $this->pdo->prepare("SELECT * FROM " . $this->db_prefix . "product_to_category 
            WHERE product_id = :product_id");

        $query->execute(array(':product_id'   => $product_id));

        return $query->rowCount();
    }
}
